//
//  HFCalendarCollectionReusableView.m
//  HFCalendar
//
//  Created by Luffy on 2021/8/24.
//

#import "HFCalendarCollectionReusableView.h"
#import "HFCalendarHeader.h"

@implementation HFCalendarCollectionReusableView {
    UILabel *_titleLabel;
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self setupUI];
    }
    return self;
}

- (void)setupUI {
    self.backgroundColor = UIColor.whiteColor;
    
    _titleLabel = [[UILabel alloc] initWithFrame:self.bounds];;
    _titleLabel.textColor = CustomTitleColor;
    _titleLabel.textAlignment = NSTextAlignmentCenter;
    _titleLabel.font = [UIFont fontWithName:@"PingFangSC" size:14.f];
    [self addSubview:_titleLabel];
}

- (void)setTitleStr:(NSString *)titleStr {
    _titleStr = titleStr;
    
    _titleLabel.text = titleStr;
}

@end
